﻿@model QuanLyCayXanh.Models.Report

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm("Edit", "Report", FormMethod.Post, new { @class = "pure-form pure-form-aligned" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Report</legend>

        <div class="pure-control-group">
            @Html.LabelFor(model => model.Tree_Id, "Tree")
            @Html.DropDownList("Tree_Id", String.Empty)
            @Html.ValidationMessageFor(model => model.Tree_Id)
        </div>

        <div class="pure-control-group">
            @Html.LabelFor(model => model.Height)
            @Html.TextBoxFor(model => model.Height, new { @class = "pure-input-1-5" })
            @Html.ValidationMessageFor(model => model.Height)
        </div>

        <div class="pure-control-group">
            @Html.LabelFor(model => model.Diameter)
            @Html.TextBoxFor(model => model.Diameter, new { @class = "pure-input-1-5" })
            @Html.ValidationMessageFor(model => model.Diameter)
        </div>

        <div class="pure-control-group">
            @Html.LabelFor(model => model.Note)
            @Html.TextAreaFor(model => model.Note, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Note)
        </div>

        <div class="pure-control-group">
            @Html.LabelFor(model => model.Rating)
            @Html.TextBoxFor(model => model.Rating, new { @class = "pure-input-1-5" })
            @Html.ValidationMessageFor(model => model.Rating)
        </div>

        <div class="pure-control-group">
            @Html.LabelFor(model => model.Image)
            @Html.TextBoxFor(model => model.Image, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Image)
        </div>

        <div class="pure-control-group">
            @Html.LabelFor(model => model.Video)
            @Html.TextBoxFor(model => model.Video, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Video)
        </div>

        <div class="pure-control-group">
            @Html.LabelFor(model => model.DateOfReference)
            @Html.TextBoxFor(model => model.DateOfReference, new { @class = "pure-input-1-4" })
            @Html.ValidationMessageFor(model => model.DateOfReference)
        </div>       

        <div class="pure-controls">
            <input type="submit" value="Create" class="pure-button pure-button-primary" />
            @Html.ActionLink("Quay lại danh sách", "Index", null, new { @class = "pure-button" })
        </div>
    </fieldset>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
